package org.serverct.finalfight.game.hadesgame;

import org.serverct.finalfight.util.CustomSettings;

public enum EventType {
    MOREDROPS, VEGETARIAN, CRAZYCOCKTAILS,
    ARROWGROUND, BADMOOD, BROKENINVENTORY, EXCHANGEPOSITION,
    RANDOMFRIEND, SKYTRACKER, SMOOTHSURFACE, TANTRUMMINGMOON,
    TANTRUMMINGSUN;
    private final String name;
    private final String description;

    EventType() {
        this.name = CustomSettings.getLanguageWithoutPrefix(this.name() + ".name");
        this.description = CustomSettings.getLanguageWithoutPrefix(this.name() + ".description");
    }

    public String getDescription() {
        return this.description;
    }

    public String getName(double factor) {
        return this.name.replace("%factor%", String.format("%.1f", factor));
    }
}
